//
//  PhotoStyleCollectionViewCell.m
//  TakePhotoDemo
//
//  Created by YangShuai on 16/9/1.
//  Copyright © 2016年 ys. All rights reserved.
//

#import "PhotoStyleCollectionViewCell.h"
#import "ConstDefine.h"

@interface PhotoStyleCollectionViewCell ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *collectionViewBottom;
@property (weak, nonatomic) IBOutlet UIImageView *wayaImageView;

@end

@implementation PhotoStyleCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    CGFloat ratio = [DataProcessing shareSingle].ratio_w;
    _collectionViewBottom.constant /= ratio;
    _styleImageView.layer.borderWidth = 1;
    _styleImageView.layer.borderColor = [UIColor colorWithHexString:@"BDBDBD"].CGColor;
    _wayaImageView.image = [UIImage imageNamed:@"waya.png"];
    if ([DataProcessing shareSingle].deviceType == DevicesTypes_iPhone) {
        _styleNameLabel.font = [UIFont systemFontOfSize:10];
    }
}

@end
